public class Test {
/*    public static int feiBo(int n) {
        int a = 1;
        int b = 1;
        int c = a+b;
        if(n==1 || n==2) {
            System.out.println(1);
        }else {
            return feiBO(n-2)+feiBO(n-1);
        }
    }
    public static void main(String[] args) {
        System.out.println(feiBo(5));
    }*/
    public static void diGui(int n) {
        if (n <= 9) {
            System.out.println(n%10);
            return;
        }
        diGui(n/10);
        System.out.println(n%10);
    }
    public static void main4(String[] args) {

        diGui(123);
    }
    public static int ret(int n) {
        if (n <= 9) {
            return n%10;
        }else {
            return n%10+ret(n/10);
        }
    }
    public static void main3(String[] args) {
        System.out.println(ret(123));
    }
    public static void printArray(int []arr) {
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
    public static void main2(String[] args) {
        int []arr={1,2,3,4,5};
        printArray(arr);
    }
    public static void main1(String[] args) {
        int []arr = new int[100];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = i+1;
        }
        for (int i = 0; i < arr.length; i++) {
            if (i%20==0) {
                System.out.println();
            }
            System.out.print(arr[i]+" ");
        }

    }
}
